package com.koron.css2.baseConfig.mapper;

import com.koron.css2.baseConfig.queryBean.BaseBookQueryBean;
import com.koron.css2.baseConfig.vo.BaseBookListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseBookMapper {
	BaseBookListVO selectByBookNo(String bookNo);
	List<BaseBookListVO> select(BaseBookQueryBean bean);
	List<BaseBookListVO> selectMeterReadingStaffName(BaseBookQueryBean bean);
	List<String> selectBookNo(@Param("meterReadingStaffAccount") String meterReadingStaffAccount);
	List<String> selectBookNoByName(@Param("meterReadingStaffName") String meterReadingStaffName);
	void insert(BaseBookListVO bean);
	void update(BaseBookListVO bean);
	void updateLastPeriodDate(@Param("date")String date,@Param("bookNos")List<String> bookNos);

	/**
	 * 表册号下拉框
	 * @param bean
	 * @return
	 */
	List<BaseBookListVO> selectBookNoList(BaseBookQueryBean bean);

	//通过用户编号查询册本号
	String selectBookNoByUserNo(String userNo);
}

